﻿using System;
using Nop.Web.Framework.Mvc;
using System.Collections.Generic;
using System.Web.Mvc;

namespace Nop.Admin.Models.Coffee
{
    public partial class BlendModel : BaseNopEntityModel
    {

        public BlendModel()
        {
            BlendBeans = new List<BlendBeanModel>();
            AvailableBeans = new List<SelectListItem>();
        }

        public string Name { get; set; }
        public string Description { get; set; }
        public bool IsActive { get; set; }

        public List<BlendBeanModel> BlendBeans { get; set; }
        public BlendBeanModel BlendBean { get; set; }

        public IList<SelectListItem> AvailableBeans { get; set; }

        public partial class BlendBeanModel : BaseNopModel
        {

            int _beanPercent = 0;

            public int Id { get; set; }
            public int BlendId { get; set; }
            public int BeanId { get; set; }
            public int BeanPercent
            {
                get { return _beanPercent; }
                set { _beanPercent = value; }
            }

            public virtual BlendModel Blend { get; set; }
            public virtual BeanModel Bean { get; set; }
        }

    }

}